[CakePHP] Showing first element of the array

Posted by user198003 on Stack Overflow See other posts from Stack Overflow or by user198003
Published on 2010-04-02T14:44:09Z Indexed on 2010/04/02 15:53 UTC
Read the original article Hit count: 212

Filed under:
|
|

How can I find and show Name of first element in a table?

I'm guessing that I have to use something like

$this->data['lastInvioce'] = $this->Invoice->find('all', array('limit' => 1));

... in controller to find it...

Tnx in adv!!!

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about table